package com.tf8.treasure.service;

import com.tf8.treasure.entity.Session;

import java.io.Serializable;
import java.util.Collection;

public interface SessionService {

    Serializable create(String sessionId, Session session);

    Session readSession(Serializable sessionId);

    void update(String sessionId, Session session);

    void delete(String sessionId);

    Collection<Session> getActiveSessions();
}
